import request from '@/request';
import type {editFormData , addFormData} from '../@types/index';

/**获取我的项目*/
export const getMyProject = (params: { page: number, pageSize: number ,duty ?: string , introduce ?: string , title ?: string}) => {
    return request({
        url: '/api/v2/admin/getMyProject',
        method: 'get',
        params
    })
} 

/**添加我的项目*/
export const addMyProject = (data: addFormData ) => request({
    url: '/api/v2/admin/addMyProject',
    method: 'post',
    data
}) 

/**删除我的项目*/
export const delMyProject = (data: { ID: string }) => request({
    url: '/api/v2/admin/delMyProject',
    method: 'post',
    data
})

/**更新我的项目*/
export const updateMyProject = (data: editFormData) => request({
    url: '/api/v2/admin/updateMyProject',
    method: 'post',
    data
})